﻿<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <IncludeRemoteExecutor>true</IncludeRemoteExecutor>
    <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks>
    <IgnoreForCI Condition="'$(TargetOS)' == 'browser'">true</IgnoreForCI>
    <DefineConstants>$(DefineConstants);LEGACY_GETRESOURCESTRING_USER</DefineConstants>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="$(CommonTestPath)System\IO\TempDirectory.cs" Link="Common\System\IO\TempDirectory.cs" />
    <Compile Include="$(CommonTestPath)System\IO\TempFile.cs" Link="Common\System\IO\TempFile.cs" />
    <Compile Include="..\src\System\Configuration\ConfigPathUtility.cs" Link="Source\ConfigPathUtility.cs" />
    <Compile Include="..\src\System\Configuration\ExceptionUtil.cs" Link="Source\ExceptionUtil.cs" />
    <Compile Include="..\src\System\Configuration\StringUtil.cs" Link="Source\StringUtil.cs" />
    <Compile Include="..\src\System\Configuration\TypeUtil.cs" Link="Source\TypeUtil.cs" />
    <Compile Include="..\src\System\Configuration\UrlPath.cs" Link="Source\UrlPath.cs" />
    <Compile Include="..\src\System\Configuration\ValidatorUtils.cs" Link="Source\ValidatorUtils.cs" />
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="Mono\CallbackValidatorTest.cs" />
    <Compile Include="Mono\CommaDelimitedStringCollectionConverterTest.cs" />
    <Compile Include="Mono\CommaDelimitedStringCollectionTest.cs" />
    <Compile Include="Mono\ConfigurationElementTest.cs" />
    <Compile Include="Mono\ConfigurationErrorsExceptionTest.cs" />
    <Compile Include="Mono\ConfigurationLockCollectionTest.cs" />
    <Compile Include="Mono\ConfigurationManagerTest.cs" />
    <Compile Include="Mono\ConfigurationPropertyTest.cs" />
    <Compile Include="Mono\ConfigurationSaveTest.cs" />
    <Compile Include="Mono\ConfigurationSectionGroupTest.cs" />
    <Compile Include="Mono\ConfigurationSectionTest.cs" />
    <Compile Include="Mono\ConnectionStringSettingsTest.cs" />
    <Compile Include="Mono\DefaultValidatorTest.cs" />
    <Compile Include="Mono\ExeConfigurationFileMapTest.cs" />
    <Compile Include="Mono\GenericEnumConverterTest.cs" />
    <Compile Include="Mono\InfiniteIntConverterTest.cs" />
    <Compile Include="Mono\InfiniteTimeSpanConverterTest.cs" />
    <Compile Include="Mono\IntegerValidatorTest.cs" />
    <Compile Include="Mono\KeyValueConfigurationCollectionTest.cs" />
    <Compile Include="Mono\KeyValueConfigurationElementTest.cs" />
    <Compile Include="Mono\LongValidatorTest.cs" />
    <Compile Include="Mono\PositiveTimeSpanValidatorTest.cs" />
    <Compile Include="Mono\RegexStringValidatorTest.cs" />
    <Compile Include="Mono\StringValidatorTest.cs" />
    <Compile Include="Mono\SubclassTypeValidatorTest.cs" />
    <Compile Include="Mono\TestLabel.cs" />
    <Compile Include="Mono\TestUtil.cs" />
    <Compile Include="Mono\TimeSpanMinutesConverterTest.cs" />
    <Compile Include="Mono\TimeSpanMinutesOrInfiniteConverterTest.cs" />
    <Compile Include="Mono\TimeSpanSecondsConverterTest.cs" />
    <Compile Include="Mono\TimeSpanSecondsOrInfiniteConverterTest.cs" />
    <Compile Include="Mono\TimeSpanValidatorTest.cs" />
    <Compile Include="Mono\TypeNameConverterTest.cs" />
    <Compile Include="Mono\WhiteSpaceTrimStringConverterTest.cs" />
    <Compile Include="System\Configuration\ApplicationSettingsBaseTests.cs" />
    <Compile Include="System\Configuration\AppSettingsReaderTests.cs" />
    <Compile Include="System\Configuration\AppSettingsTests.cs" />
    <Compile Include="System\Configuration\BinaryFormatterDeprecationTests.cs" />
    <Compile Include="System\Configuration\CallBackValidatorAttributeTests.cs" />
    <Compile Include="System\Configuration\ConfigPathUtilityTests.cs" />
    <Compile Include="System\Configuration\ConfigurationElementCollectionTests.cs" />
    <Compile Include="System\Configuration\ConfigurationElementTests.cs" />
    <Compile Include="System\Configuration\ConfigurationPropertyAttributeTests.cs" />
    <Compile Include="System\Configuration\ConfigurationPathTests.cs" />
    <Compile Include="System\Configuration\CustomHostTests.cs" />
    <Compile Include="System\Configuration\ConfigurationPropertyTests.cs" />
    <Compile Include="System\Configuration\ConfigurationTests.cs" />
    <Compile Include="System\Configuration\BasicCustomSectionTests.cs" />
    <Compile Include="System\Configuration\ConnectionStringsTests.cs" />
    <Compile Include="System\Configuration\ExceptionUtilTests.cs" />
    <Compile Include="System\Configuration\ImplicitMachineConfigTests.cs" />
    <Compile Include="System\Configuration\KeyValueConfigurationCollectionTests.cs" />
    <Compile Include="System\Configuration\LocalFileSettingsProviderTests.cs" />
    <Compile Include="System\Configuration\NameValueConfigurationCollectionTests.cs" />
    <Compile Include="System\Configuration\SectionGroupsTests.cs" />
    <Compile Include="System\Configuration\SettingElementCollectionTests.cs" />
    <Compile Include="System\Configuration\SettingElementTests.cs" />
    <Compile Include="System\Configuration\SettingsDescriptionAttributeTests.cs" />
    <Compile Include="System\Configuration\SettingsGroupDescriptionAttributeTests.cs" />
    <Compile Include="System\Configuration\SettingsManageabilityAttributeTests.cs" />
    <Compile Include="System\Configuration\SettingsPropertyIsReadOnlyExceptionTests.cs" />
    <Compile Include="System\Configuration\SettingsPropertyNotFoundExceptionTests.cs" />
    <Compile Include="System\Configuration\SettingsPropertyWrongTypeExceptionTests.cs" />
    <Compile Include="System\Configuration\SmokeTest.cs" />
    <Compile Include="System\Configuration\StringUtilTests.cs" />
    <Compile Include="System\Configuration\TempConfig.cs" />
    <Compile Include="System\Configuration\TempConfigurationHost.cs" />
    <Compile Include="System\Configuration\TestData.cs" />
    <Compile Include="System\Configuration\StringValidatorTests.cs" />
    <Compile Include="System\Configuration\SubclassTypeValidatorAttributeTests.cs" />
    <Compile Include="System\Configuration\StringValidatorAttributeTests.cs" />
    <Compile Include="System\Configuration\TimeSpanValidatorAttributeTests.cs" />
    <Compile Include="System\Configuration\TypeUtilTests.cs" />
    <Compile Include="System\Configuration\UriSectionTests.cs" />
    <Compile Include="System\Configuration\UrlPathTests.cs" />
    <Compile Include="System\Configuration\ValidatiorUtilsTests.cs" />
    <Compile Include="System\Diagnostics\DiagnosticsTestData.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
    <Compile Include="System\Diagnostics\TraceSourceConfigurationTests.cs"  Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
    <Compile Include="System\Drawing\Configuration\SystemDrawingSectionTests.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\src\System.Configuration.ConfigurationManager.csproj" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <Reference Include="System.Configuration" />
    <!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
    <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" PrivateAssets="all" />
  </ItemGroup>
</Project>
